﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using SinBiota.Model.Business.MapServices.Implementation;
using SinBiota.Model.Entities;

namespace SinBiota.UnitTests.Business
{
    [TestFixture]
    public class MapFixture
    {
        [Test]
        public void JustBasicTests()
        {
            var spatialServices = new SpatialServices();
            var point = spatialServices.QuadKeyToTileXY("33");
            Console.WriteLine(point);
        }
        [Test]
        public void EnumTest()
        {
            var r1 = "Admin";
            var r2 = "Nada";
            var role1 = Enum.Parse(typeof(Role), r1);
            Role result;
            var role2 = Enum.TryParse(r2, true, out result);
            Assert.AreEqual(role1, Role.Admin);
            Assert.AreEqual(role2, null);
        }
    }
}
